<?php

//Yii::import('zii.widgets.CPortlet');

class PhotoGallery extends Portlet
{
	public $title='Galeri Photo';
	public $maxPhotos=10;

	public function getRecentPhotos()
	{
		return Gallery::model()->findRecentPhotos($this->maxPhotos);
	}

	protected function renderContent()
	{
		$this->render('photoGallery');
	}
}